package com.ruoyi.web.controller.dingtalkReport;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.DevelopException;
import com.ruoyi.system.domain.SysConfig;
import com.ruoyi.system.service.IDdReportService;
import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.system.vo.DevelopExceptionVO;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * 钉钉报表 信息操作处理
 * 
 * @author ruoyi
 */
@Controller
@RequestMapping("/ddReport")
public class DdReportController extends BaseController
{

    @Autowired
    private IDdReportService ddReportService;


    /**
     * 查询参数配置列表
     */
//    @RequiresPermissions("system:config:list")
   /* @PostMapping("/list")
    @ResponseBody
    public TableDataInfo selectDevelopException(SysConfig config)
    {
        startPage();
        List<SysConfig> list = ddReportService.selectDevelopException(config);
        return getDataTable(list);
    }*/

    @PostMapping("/getDevelopExceptionList")
    @ResponseBody
    @DS("ddbb")
    public AjaxResult getDevelopExceptionList(@RequestBody DevelopExceptionVO exceptionVO) throws Exception
    {
        List<DevelopException> developException1 = ddReportService.selectDevelopExceptions(exceptionVO);
        return success(developException1);
    }





}
